/*
 * @Author: your name
 * @Date: 2021-10-11 10:27:16
 * @LastEditTime: 2021-10-11 19:08:56
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \SK_ZH101\project\peripheral\ZH101\Source\rf_profile\phy_rfc.h
 */
/**************************************************************************************************
*******
**************************************************************************************************/

/**************************************************************************************************
    Filename:       phy_Rf.h
    Revised:
    Revision:

    Description:    This file contains the phy sample application
                  definitions and prototypes.


**************************************************************************************************/

#ifndef PHYRF_H
#define PHYRF_H

#ifdef __cplusplus
extern "C"
{
#endif

/*********************************************************************
    INCLUDES
*/

/*********************************************************************
    CONSTANTS
*/


// PHY Task Events
#define PPP_PERIODIC_TX_EVT         0x0001
#define PPP_PERIODIC_RX_EVT         0x0002
#define PPP_TX_DONE_EVT             0x0004
#define PPP_RX_DONE_EVT             0x0008
#define PPP_TRX_DONE_EVT            0x0010
#define PPP_RX_DATA_PROCESS_EVT     0x0020
#define PPP_RX_CHECK_TIMER          0x0040


extern uint8 PhyRf_TaskID; // Task ID for internal task/event processing
/*********************************************************************
    MACROS
*/

/*********************************************************************
    FUNCTIONS
*/

/*
    Task Initialization for the PHY Application
*/
extern void PhyRf_Init( uint8 task_id );

/*
    Task Event Processor for the PHY Application
*/
extern uint16 PhyRf_ProcessEvent( uint8 task_id, uint16 events );

extern void phy_tx_buf_updata(uint8_t* txPayload,uint8_t dlen);

/*********************************************************************
*********************************************************************/

#ifdef __cplusplus
}
#endif

#endif /* PHYRF_H */
